<?php if (isset($paginator['pages']) && $paginator['pageCount']): ?>
    <div class="row">
        <div class="col-xs-6">
            <div class="dataTables_info" id="sample-table-2_info" role="status" aria-live="polite">
                共<?php echo $paginator['totalItem']; ?>条 共<?php echo $paginator['pageCount']; ?>页
            </div>
        </div>
        <?php if ($paginator['pageCount'] > 1): ?>
            <div class="col-xs-6">
                <div class="dataTables_paginate paging_simple_numbers" id="sample-table-2_paginate">
                    <ul class="pagination">
                        <?php if (isset($paginator['first']) && $paginator['current'] > 1): ?>
                            <li class="paginate_button"><a href="<?php echo $paginator['firstUrl']; ?>">第一页</a></li>
                        <?php endif; ?>
                        <?php if (isset($paginator['first']) && $paginator['current'] > 1): ?>
                            <li class="paginate_button previous" aria-controls="sample-table-2" tabindex="0" id="sample-table-2_previous">
                                <a href="<?php echo $paginator['previousUrl']; ?>">上一页</a>
                            </li>
                        <?php endif; ?>
                        <?php foreach ($paginator['pages'] as $key => $val): ?>
                            <?php if ($key == $paginator['PAGE']): ?>
                                <li class="paginate_button active" aria-controls="sample-table-2" tabindex="0"><span><?php echo $key; ?></span></li>
                            <?php else: ?>
                                <li class="paginate_button"><a href="<?php echo $val; ?>"><?php echo $key; ?></a></li>
                            <?php endif; ?>
                        <?php endforeach; ?>
                        <?php if (isset($paginator['next']) && isset($paginator['nextUrl'])): ?>
                            <li class="paginate_button next" aria-controls="sample-table-2" tabindex="0" id="sample-table-2_next">
                                <a href="<?php echo $paginator['nextUrl']; ?>">下一页</a>
                            </li>
                        <?php endif; ?>
                        <?php if (isset($paginator['last']) && isset($paginator['lastUrl'])): ?>
                            <li class="paginate_button" aria-controls="sample-table-2" tabindex="0" id="sample-table-2_next">
                                <a href="<?php echo $paginator['lastUrl']; ?>">末页</a>
                            </li>
                        <?php endif; ?>
                    </ul>
                </div>
            </div>
        <?php endif; ?>
    </div>
<?php endif;
